package FurnitureControll_Facade_10;

import FurnitureControll_Facade_10.Systems.AirCondition;
import FurnitureControll_Facade_10.Systems.Light;
import FurnitureControll_Facade_10.Systems.SecuritySystem;

public class HomeFacade {
    private final Light light;
    private final AirCondition airCondition;
    private final SecuritySystem securitySystem;

    public HomeFacade() {
        this.light = new Light();
        this.airCondition = new AirCondition();
        this.securitySystem = new SecuritySystem();
    }

    //home mode
    public void HomeMode(){
        light.turnOn();
        airCondition.turnOn();
        securitySystem.deactivate();
    }

    //away mode
    public void AwayMode(){
        light.turnOff();
        airCondition.turnOff();
        securitySystem.activate();
    }
}
